To redirect a page using `.htaccess`, you must create or edit the `.htaccess` file in the root directory of your website. This file uses Apache’s mod\_rewrite module to handle URL redirections. Here are several ways to achieve different types of redirects:
```
Redirect 301 /old-page.html http://www.yourwebsite.com/new-page.html
```
Example:
```
Redirect 301 /about.html http://www.yourwebsite.com/about-us.html
```
```
Redirect 302 /temporarily-moved-page.html http://www.yourwebsite.com/new-temporary-page.html
```
Example:
```
Redirect 302 /sale.html http://www.yourwebsite.com/summer-sale.html
```
```
RewriteEngine On
```
Example:
```
RewriteRule ^contact.html$ http://www.yourwebsite.com/get-in-touch.html [R=301,L]
```
```
RewriteRule ^old-directory/(.*)$ http://www.yourwebsite.com/new-directory/$1 [R=301,L]
```
Example:
```
RewriteRule ^blog/(.*)$ http://www.yourwebsite.com/news/$1 [R=301,L]
```
```
RewriteCond %{HTTP_HOST} ^old-domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.old-domain.com$
RewriteRule (.*)$ http://www.new-domain.com/$1 [R=301,L]
```
Example:
```
RewriteCond %{HTTP_HOST} ^example-old.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.example-old.com$
RewriteRule (.*)$ http://www.example-new.com/$1 [R=301,L]
```
1. Moz Blog: Provides best practices for using redirects, particularly focusing on their SEO implications. [Moz – Permanent (301) VS Temporary (302) Redirects](https://moz.com/learn/seo/redirection)
1. Stack Overflow: Community-driven, detailed discussions on various `.htaccess` use cases. [Stack Overflow – .htaccess redirect](https://stackoverflow.com/questions/tagged/htaccess)
By utilizing the configurations and examples provided, you can effectively manage URL redirections on your Apache server.